package com.hhf.feiapiinterface;

import com.hhf.feiapiclientsdk.client.HelloClient;
import com.hhf.feiapiclientsdk.entity.User;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;

/**
 * @Author hhf
 * @Date 2024/10/5
 * @Description
 */
@SpringBootTest
public class Main {

    private String accessKey = "123";
    private String secretKey = "hhf123";

    @Resource
    private HelloClient helloClient;

    @Test
    void testClient(){

        User user = new User("hhf","123");

        helloClient.getTextByGet("world");
        helloClient.getTextByPost("world");
        helloClient.getTextByPostJson(user);

    }

}
